﻿using Client.Constant;
using Client.Framework.Message;
using Client.Model;
using Client.Service;
using Client.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Message.Response
{
    [MessageAttr(MessageId.RESPONSE_LOGOUT)]
    class LogoutResp : ResponseBaseMessage
    {
        public int Code { get; set; }
        public string ErrMsg { get; set; }

        public override void Deserialize(byte[] buffer)
        {
            ResponseLogout msg = ResponseLogout.Parser.ParseFrom(buffer);
            Code = msg.Code;
            ErrMsg = msg.ErrMsg;
        }
    }
}
